<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_user_up".
 *
 * @property int $id
 * @property int $day 会员卡有效天数
 * @property int $up_vip1 VIP升级, 有多少下单的人
 * @property int $up_vip2
 * @property int $up_vip2_first
 * @property int $up_vip2_team
 * @property int $up_vip3
 * @property int $up_vip4
 * @property int $card_num
 * @property float $card_amount
 * @property float $card_platform_ticket
 * @property float $registry
 * @property float $express_vip1
 * @property float $express_vip2
 * @property float $express_vip3
 * @property float $express_vip4
 * @property float $express_vip2_team
 * @property float $express_vip3_area
 * @property float $express_vip4_area
 * @property float $card_vip1
 * @property float $card_vip2
 * @property float $card_vip3
 * @property float $card_vip4
 * @property float $card_vip2_team
 * @property float $card_vip3_area
 * @property float $card_vip4_area
 * @property float $product_vip1
 * @property float $product_vip2
 * @property float $product_vip3
 * @property float $product_vip4
 * @property float $product_vip2_team
 * @property float $product_vip4_area
 * @property float $product_vip3_area
 * @property int $card_use
 */
class SetUserUp extends \yii\db\ActiveRecord
{
    use SetUserUpCommon;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_user_up';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['day', 'up_vip1', 'up_vip2', 'up_vip2_first', 'up_vip2_team', 'up_vip3', 'up_vip4', 'card_num'], 'integer'],
            [['card_amount', 'card_platform_ticket', 'registry', 'express_vip1', 'express_vip2', 'express_vip3', 'express_vip4', 'express_vip2_team', 'express_vip3_area', 'express_vip4_area', 'card_vip1', 'card_vip2', 'card_vip3', 'card_vip4', 'card_vip2_team', 'card_vip3_area', 'card_vip4_area', 'product_vip1', 'product_vip2', 'product_vip3', 'product_vip4', 'product_vip2_team', 'product_vip4_area', 'product_vip3_area'], 'number'],
            [['express_vip1', 'express_vip2', 'express_vip3', 'express_vip4', 'express_vip2_team', 'express_vip3_area', 'express_vip4_area', 'card_vip1', 'card_vip2', 'card_vip3', 'card_vip4', 'card_vip2_team', 'card_vip3_area', 'card_vip4_area', 'product_vip1', 'product_vip2', 'product_vip3', 'product_vip4', 'product_vip2_team', 'product_vip4_area', 'product_vip3_area'], 'required'],

            [['card_use', 'r_new'], 'safe']
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'day' => 'Day',
            'up_vip1' => 'Up Vip 1',
            'up_vip2' => 'Up Vip 2',
            'up_vip2_first' => 'Up Vip 2 First',
            'up_vip2_team' => 'Up Vip 2 Team',
            'up_vip3' => 'Up Vip 3',
            'up_vip4' => 'Up Vip 4',
            'card_num' => 'Card Num',
            'card_amount' => 'Card Amount',
            'card_platform_ticket' => 'Card Platform Ticket',
            'registry' => 'Registry',
            'express_vip1' => 'Express Vip 1',
            'express_vip2' => 'Express Vip 2',
            'express_vip3' => 'Express Vip 3',
            'express_vip4' => 'Express Vip 4',
            'express_vip2_team' => 'Express Vip 2 Team',
            'express_vip3_area' => 'Express Vip 3 Area',
            'express_vip4_area' => 'Express Vip 4 Area',
            'card_vip1' => 'Card Vip 1',
            'card_vip2' => 'Card Vip 2',
            'card_vip3' => 'Card Vip 3',
            'card_vip4' => 'Card Vip 4',
            'card_vip2_team' => 'Card Vip 2 Team',
            'card_vip3_area' => 'Card Vip 3 Area',
            'card_vip4_area' => 'Card Vip 4 Area',
            'product_vip1' => 'Product Vip 1',
            'product_vip2' => 'Product Vip 2',
            'product_vip3' => 'Product Vip 3',
            'product_vip4' => 'Product Vip 4',
            'product_vip2_team' => 'Product Vip 2 Team',
            'product_vip4_area' => 'Product Vip 4 Area',
            'product_vip3_area' => 'Product Vip 3 Area',
        ];
    }
}
